home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-1998 - Modelworks Software
-
- // Insert script helper for:
-
- /**
- @Object: Editor
- @Method: replace(data, findData) - replaces the range specified by the findData
- object with the data. Data can be either a string or another editor. Returns
- the range inserted.
- @Syntax: editor.replace(data, findData)
- @Summary: replace - replaces the range specified by the findData
- */
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- var selection = editor.getSelection();
- editor.replace("editor.replace(data, findData);", selection);
- editor.setActive("Insert editor.replace");
- }
- }
-
- !!/Script
-